package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 008.市场商户关系表
 * </p>
 *
 * @author admin
 * @since 2020-09-10
 */
@TableName("biz_market_busi")
public class BizMarketBusi implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 市场Id
     */
    @TableId("MarkCode")
    private Integer markCode;

    /**
     * 商户Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 商户类型 2=果农
3=分拣厂
4=农资厂
5=包装物厂
6=采购商
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 租金 保存单位为分
     */
    @TableField("Rent")
    private Integer rent;

    /**
     * 是否已付租金 0=否
1=是
     */
    @TableField("PaidRent")
    private Integer paidRent;

    /**
     * 租金终止日期 使用2100年1月1日作为长期
     */
    @TableField("RentValidPeriod")
    private LocalDate rentValidPeriod;

    public Integer getMarkCode() {
        return markCode;
    }

    public void setMarkCode(Integer markCode) {
        this.markCode = markCode;
    }
    public Long getBusiId() {
        return busiId;
    }

    public void setBusiId(Long busiId) {
        this.busiId = busiId;
    }
    public Integer getBusiType() {
        return busiType;
    }

    public void setBusiType(Integer busiType) {
        this.busiType = busiType;
    }
    public Integer getRent() {
        return rent;
    }

    public void setRent(Integer rent) {
        this.rent = rent;
    }
    public Integer getPaidRent() {
        return paidRent;
    }

    public void setPaidRent(Integer paidRent) {
        this.paidRent = paidRent;
    }
    public LocalDate getRentValidPeriod() {
        return rentValidPeriod;
    }

    public void setRentValidPeriod(LocalDate rentValidPeriod) {
        this.rentValidPeriod = rentValidPeriod;
    }

    @Override
    public String toString() {
        return "BizMarketBusi{" +
            "markId=" + markCode +
            ", busiId=" + busiId +
            ", busiType=" + busiType +
            ", rent=" + rent +
            ", paidRent=" + paidRent +
            ", rentValidPeriod=" + rentValidPeriod +
        "}";
    }
}
